home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
HPAVC
/
HPAVC CD-ROM.iso
/
CON-03A.ZIP
/
MMENU.PAS
< prev
next >
Wrap
Pascal/Delphi Source File
|
1995-11-16
|
3KB
|
134 lines
(* Conspiracy Software Version 0.2α (c)1995 Grooven Designs *)
(* Coded by Paul Maggs (fLiCk) / Grooven Designs *)
(* Conspiracy Menu CMDS unit *)
unit mmenu;
interface
procedure main_menu;
implementation
uses crt,
dos,
funct,
comms,
msgbase,
pager,
list;
type
userrecord = record
handle : string[30];
location : string[30];
realname : string[30];
password : string[15];
voicephone : string[30];
dataphone : string[30];
lines : byte;
computer : string[30];
end;
const
prompt ='([$] conspiracy [$] - menu commands) : ';
procedure main_menu;
var
f : file of userrecord;
user : userrecord;
ch : char;
bob_drinks_all_brew : boolean;
begin
clrscr;
write(prompt);
repeat
bob_drinks_all_brew := false;
ch := readkey;
if (ch = 'B') or (ch = 'b') then
begin
init_bbs_list;
menu;
end;
if (ch = 'O') or (ch = 'o') then
begin
run_pager;
end;
if (ch = 'M') or (ch = 'm') then
begin
{message_menu;}
end;
if (ch = 'R') or (ch = 'r') then
begin
read_message;
end;
if (ch = 'E') or (ch = 'e') then
begin
enter_message
end;
if (ch = 'G') or (ch = 'g') then
begin
send_ansi('goodbye.ans');
halt;
end;
if (ch = '?') then
begin
send_ansi('mainm.ans');
write(prompt);
end;
if (ch = 'i') or (ch = 'I') then
begin
writeln('Okay, '+user.handle+', please enter your desired password: ');
send_ansi('welcome.ans');
writeln('press and key to continue');
repeat until keypressed;
end;
{ if (ch = 'v') or (ch = 'V') then
begin
writeln('Conspiracy User Statistics');
writeln('Handle :'+user.handle+);
}
if (ch = #13) then
begin
writeln;
write(prompt);
{write('([$] conspiracy [$] - menu commands) : ');}
end;
until bob_drinks_all_brew;
end;
end.
(* send_ansi('welcome.ans');
repeat
case ch of
'L': begin
writeln('GEEK');
{list_users;}
end;
'F' : begin
{file_list;}
end;
'?': begin
send_ansi('menucmd.ans');
end;
'I' : begin
send_ansi('info.ans');
end;
'G' : begin
halt;
end;
until bob_drinks_all_brew;
end;
*)